//
//  SMMoneyModel.m
//  SaveMoney
//
//  Created by user on 2018/11/26.
//  Copyright © 2018年 Sunflower. All rights reserved.
//

#import "SMMoneyModel.h"

@implementation SMMoneyModel

- (BOOL)isSave {
    if (_alreadyMoney >= _totalMoney && _saveMoneyType != SMEverFreedom) {
        return NO;
    }
    return YES;
}

- (NSInteger)everyDayMoney {
    _saveMoneyDay = _saveMoneyDay?_saveMoneyDay:1;
    NSInteger money = _totalMoney/_saveMoneyDay;
    return money;
}

@end
